diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index 4738df7..eb6653c 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -56,24 +56,25 @@ local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true local lspconfig = require("lspconfig") -lspconfig.pyls.setup { - on_attach = on_attach, - settings = { - pyls = { - plugins = { - flake8 = {enabled = false}, - pylint = {enabled = true, executable = "pylint"}, - pyflakes = {enabled = false}, - pycodestyle = {enabled = false}, - jedi_completion = {fuzzy = true}, - pyls_isort = {enabled = true}, - pyls_mypy = {enabled = true} - } - } - }, - flags = { - debounce_text_changes = 500, + +lspconfig.pyls.setup{ + on_attach = on_attach, + settings = { + pyls = { + plugins = { + flake8 = {enabled = false}, + pylint = {enabled = true, executable = "pylint"}, + pyflakes = {enabled = false}, + pycodestyle = {enabled = false}, + jedi_completion = {fuzzy = true}, + pyls_isort = {enabled = true}, + pyls_mypy = {enabled = true} + } } + }, + flags = { + debounce_text_changes = 500, + } } lspconfig.clangd.setup{ @@ -156,7 +157,7 @@ require'compe'.setup { vim.o.completeopt = "menuone,noselect" --- nvim-comple mappings +-- nvim-compe mappings vim.api.nvim_set_keymap('i', '', 'compe#complete()', {expr = true}) vim.api.nvim_set_keymap('i', '', "compe#confirm('')", {expr = true}) vim.api.nvim_set_keymap('i', '', "compe#close('')", {expr = true}) diff --git a/lua/plugins.lua b/lua/plugins.lua index 9cc8780..6163784 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -22,7 +22,7 @@ require('packer').startup( -- Python syntax highlighting and more if (vim.g.is_mac == 1) or (vim.g.is_win == 1) then - use {'numirias/semshi', run = ':UpdateRemotePlugins', ft = {'python', }} + use {'numirias/semshi', run = ':UpdateRemotePlugins', ft = 'python'} end -- Python indent (follows the PEP8 style)