|
|
@ -24,16 +24,6 @@ vim.api.nvim_set_keymap('n', '-', ':Ex<CR>', { noremap=true, silent=true }) |
|
|
|
-- Rainbow braket configuration |
|
|
|
-- Rainbow braket configuration |
|
|
|
vim.g['rainbow_active'] = true |
|
|
|
vim.g['rainbow_active'] = true |
|
|
|
|
|
|
|
|
|
|
|
-- lsp saga improves the display of LSP information |
|
|
|
|
|
|
|
local saga = require('lspsaga') |
|
|
|
|
|
|
|
saga.init_lsp_saga { |
|
|
|
|
|
|
|
error_sign = '>', |
|
|
|
|
|
|
|
warn_sign = '#', |
|
|
|
|
|
|
|
hint_sign = '!', |
|
|
|
|
|
|
|
infor_sign = '?', |
|
|
|
|
|
|
|
border_style = "round", |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- lsp configuration |
|
|
|
-- lsp configuration |
|
|
|
local nvim_lsp = require('lspconfig') |
|
|
|
local nvim_lsp = require('lspconfig') |
|
|
|
local on_attach = function(client, bufnr) |
|
|
|
local on_attach = function(client, bufnr) |
|
|
@ -65,6 +55,16 @@ nvim_lsp.pyright.setup { |
|
|
|
on_attach = on_attach |
|
|
|
on_attach = on_attach |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- lsp saga improves the display of LSP information |
|
|
|
|
|
|
|
local saga = require('lspsaga') |
|
|
|
|
|
|
|
saga.init_lsp_saga { |
|
|
|
|
|
|
|
error_sign = '>', |
|
|
|
|
|
|
|
warn_sign = '#', |
|
|
|
|
|
|
|
hint_sign = '!', |
|
|
|
|
|
|
|
infor_sign = '?', |
|
|
|
|
|
|
|
border_style = "round", |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
-- treesitter |
|
|
|
-- treesitter |
|
|
|
require 'nvim-treesitter.configs'.setup { |
|
|
|
require 'nvim-treesitter.configs'.setup { |
|
|
|
ensure_installed = 'maintained', |
|
|
|
ensure_installed = 'maintained', |
|
|
|