aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-07-04 14:16:46 +0800
committerjdhao <jdhao@hotmail.com>2021-07-04 14:16:46 +0800
commitc1ba7af97e984c8dc164a738e4c26709044aa6c0 (patch)
treeff277236a87a06303c606bf3ae3db56714fa9e98
parentd3ee056f9631181b549f12a9485ee0ba18f773f8 (diff)
Fix typo
-rw-r--r--lua/lsp/init.lua37
-rw-r--r--lua/plugins.lua2
2 files changed, 20 insertions, 19 deletions
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', '<C-Space>', 'compe#complete()', {expr = true})
vim.api.nvim_set_keymap('i', '<CR>', "compe#confirm('<CR>')", {expr = true})
vim.api.nvim_set_keymap('i', '<ESC>', "compe#close('<ESC>')", {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)