added some config
This commit is contained in:
parent
89d7b6f48b
commit
017beacb06
5 changed files with 310 additions and 0 deletions
4
nvim/.luarc.json
Normal file
4
nvim/.luarc.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"$SCHEMA": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||
"diagnostics.globals": [ "vim" ]
|
||||
}
|
||||
|
|
@ -20,11 +20,19 @@ vim.cmd [[
|
|||
call plug#begin()
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'folke/trouble.nvim'
|
||||
Plug 'dart-lang/dart-vim-plugin'
|
||||
Plug 'thosakwe/vim-flutter'
|
||||
call plug#end()
|
||||
]]
|
||||
|
||||
require 'trouble'.open("diagnostics")
|
||||
|
||||
vim.lsp.enable( 'lua_ls' )
|
||||
vim.lsp.enable( 'rust_analyzer' )
|
||||
vim.lsp.enable( 'dartls' )
|
||||
|
||||
vim.g.mapleader = ' '
|
||||
vim.api.nvim_set_keymap( 'n', '<Leader>w', ':w<CR>', { noremap = true, silent = true } )
|
||||
vim.api.nvim_set_keymap( 'n', '<Leader>n', ':NERDTree<CR>', { noremap = true, silent = true } )
|
||||
vim.api.nvim_set_keymap( 'n', '<Leader>d', ':Trouble diagnostics<CR>', { noremap = true, silent = true } )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue