diff --git a/lua/user/colorscheme.lua b/lua/user/colorscheme.lua index fc76862..51e3fef 100644 --- a/lua/user/colorscheme.lua +++ b/lua/user/colorscheme.lua @@ -1,6 +1,6 @@ vim.cmd [[ try - colorscheme evening + colorscheme delek catch /^Vim\%((\a\+)\)\=:E185/ colorscheme default set background=dark diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index 22e78e8..f299094 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -46,7 +46,7 @@ end local function lsp_highlight_document(client) -- Set autocommands conditional on server_capabilities - if client.server_capabilities.documentFormattingProvider then + if client.server_capabilities.documentHighlightProvider then vim.api.nvim_exec( [[ augroup lsp_document_highlight @@ -82,6 +82,9 @@ local function lsp_keymaps(bufnr) vim.api.nvim_buf_set_keymap(bufnr, "n", "]d", 'lua vim.diagnostic.goto_next({ border = "rounded" })', opts) vim.api.nvim_buf_set_keymap(bufnr, "n", "q", "lua vim.diagnostic.setloclist()", opts) vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]] + vim.cmd [[ hi LspReferenceText cterm=bold gui=bold ]] + vim.cmd [[ hi LspReferenceRead cterm=bold gui=bold ]] + vim.cmd [[ hi LspReferenceWrite cterm=bold gui=bold ]] end M.on_attach = function(client, bufnr) diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 17dd7b5..532a556 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -57,7 +57,6 @@ return packer.startup(function(use) use "saadparwaiz1/cmp_luasnip" -- snippet completions use "hrsh7th/cmp-nvim-lsp" use "hrsh7th/cmp-nvim-lua" - -- snippets use "L3MON4D3/LuaSnip" --snippet engine use "rafamadriz/friendly-snippets" -- a bunch of snippets to use