From bf385e91c80f9963624c501eb0a8d2b35c6f2466 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 18 Nov 2021 13:44:04 +0100 Subject: Added Nerd Font to alacritty for emoji, Updated zsh aliases and qutebrowser for Darwin specific config --- config/nvim/init.lua | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'config/nvim/init.lua') diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 9634562..1afc4a3 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -63,15 +63,16 @@ require('telescope').setup { [''] = actions.move_selection_next, [''] = actions.move_selection_previous, [''] = actions.close, + ['kj'] = actions.close, } - } + }, } } require('lualine').setup { options = { theme = 'gruvbox', - icons_enabled = false, + icons_enabled = true, section_separators = '', component_separators = '' } @@ -81,9 +82,9 @@ require('nvim-treesitter.configs').setup { highlight = { enable = true }, - indent = { - enable = true - }, + -- indent = { + -- enable = true + -- }, incremental_selection = { enable = true, keymaps = { @@ -94,9 +95,22 @@ require('nvim-treesitter.configs').setup { } } } +vim.cmd [[ highlight link pythonTSKeywordOperator Keyword ]] +-- require 'nvim-treesitter.highlight' +-- local hlmap = vim.treesitter.TSHighlighter.hl_map +-- hlmap.error = nil + require('nvim_comment').setup() -require('lspconfig').clangd.setup {} +-- local on_attach = function(_, bufnr) +-- local opts = {noremap = true, silent = true } +-- vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', 'lua vim.lsp.buf.declaration()', opts) +-- vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', 'lua vim.lsp.buf.hover()', opts) +-- vim.api.nvim_buf_set_keymap(bufnr, 'n', '', 'lua vim.lsp.buf.signature_help()', opts) +-- end + +-- require('lspconfig').clangd.setup {} +-- require('lspconfig').pyright.setup { on_attach = on_attach } require('mappings') -- cgit