remove LSP for testing
This commit is contained in:
@@ -17,7 +17,7 @@ vim.api.nvim_set_keymap('n', '<C-b>', ":Lexplore<CR> :vertical resize 30<CR>", {
|
||||
vim.api.nvim_set_keymap('i', 'ć', '<Esc>l', opts)
|
||||
vim.api.nvim_set_keymap('i', 'Ć', '<Esc>l', opts)
|
||||
|
||||
-- make ctrl-shift arrows movement
|
||||
-- make ctrl-shift arrows line movement
|
||||
vim.api.nvim_set_keymap('n', '<C-A-Up>', 'ddkP', opts)
|
||||
vim.api.nvim_set_keymap('v', '<C-A-Up>', ':m \'<-2<CR>gv=gv', opts)
|
||||
vim.api.nvim_set_keymap('n', '<C-A-Down>', 'ddp', opts)
|
||||
@@ -52,10 +52,10 @@ vim.api.nvim_set_keymap('i', '<Tab>', '\t', opts)
|
||||
vim.api.nvim_set_keymap('i', '<S-Tab>', '\b', opts)
|
||||
|
||||
-- window movement
|
||||
--vim.api.nvim_set_keymap('', '<C-w>j', '<C-w>h', opts)
|
||||
--vim.api.nvim_set_keymap('', '<C-w>k', '<C-w>j', opts)
|
||||
--vim.api.nvim_set_keymap('', '<C-w>l', '<C-w>k', opts)
|
||||
--vim.api.nvim_set_keymap('', '<C-w>č', '<C-w>l', opts)
|
||||
vim.api.nvim_set_keymap('', '<C-w><S-Left>', '<C-w><S-h>', opts)
|
||||
vim.api.nvim_set_keymap('', '<C-w><S-Down>', '<C-w><S-j>', opts)
|
||||
vim.api.nvim_set_keymap('', '<C-w><S-Up>', '<C-w><S-k>', opts)
|
||||
vim.api.nvim_set_keymap('', '<C-w><S-Right>', '<C-w><S-l>', opts)
|
||||
|
||||
-- opening terminal with shortcut
|
||||
vim.api.nvim_set_keymap('', '<Leader><CR>', '<Cmd>silent !$TERM &<CR>', opts)
|
||||
|
||||
@@ -24,14 +24,6 @@ installServers({'angularls', 'bashls', 'dockerls', 'lua_ls', 'pyright', 'jsonls'
|
||||
lsp_installer.on_server_ready(function(server)
|
||||
local opts = {}
|
||||
|
||||
-- (optional) Customize the options passed to the server
|
||||
-- if server.name == "tsserver" then
|
||||
-- opts.root_dir = function() ... end
|
||||
-- end
|
||||
if server.name == 'lua_ls' then
|
||||
opts = require'lsp-server-config.lua'
|
||||
end
|
||||
|
||||
-- This setup() function is exactly the same as lspconfig's setup function.
|
||||
-- Refer to https://github.com/neovim/nvim-lspconfig/blob/master/ADVANCED_README.md
|
||||
server:setup(opts)
|
||||
|
||||
@@ -114,18 +114,14 @@ local packer = require('packer').startup(function(use)
|
||||
use {
|
||||
'neovim/nvim-lspconfig',
|
||||
'williamboman/nvim-lsp-installer',
|
||||
'hrsh7th/nvim-cmp',
|
||||
}
|
||||
|
||||
-- for LSP autocompletion
|
||||
use 'hrsh7th/cmp-nvim-lsp'
|
||||
use 'hrsh7th/cmp-buffer'
|
||||
use 'hrsh7th/cmp-path'
|
||||
use 'hrsh7th/cmp-cmdline'
|
||||
use 'hrsh7th/nvim-cmp'
|
||||
|
||||
-- For vsnip users.
|
||||
use 'hrsh7th/cmp-vsnip'
|
||||
use 'hrsh7th/vim-vsnip'
|
||||
---- for LSP autocompletion
|
||||
--use 'hrsh7th/cmp-nvim-lsp'
|
||||
--use 'hrsh7th/cmp-buffer'
|
||||
--use 'hrsh7th/cmp-path'
|
||||
--use 'hrsh7th/cmp-cmdline'
|
||||
|
||||
-- highlight variables under cursor
|
||||
use 'RRethy/vim-illuminate'
|
||||
|
||||
Reference in New Issue
Block a user