added some config

This commit is contained in:
Alexey 2025-07-06 14:04:09 +03:00
commit 017beacb06
5 changed files with 310 additions and 0 deletions

4
nvim/.luarc.json Normal file
View file

@ -0,0 +1,4 @@
{
"$SCHEMA": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"diagnostics.globals": [ "vim" ]
}

View file

@ -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 } )