30 lines
680 B
Lua
30 lines
680 B
Lua
vim.o.number = true
|
|
vim.o.tabstop = 4
|
|
vim.o.shiftwidth = 4
|
|
vim.o.expandtab = true
|
|
vim.o.smartindent = true
|
|
vim.o.cursorline = true
|
|
|
|
vim.cmd( 'syntax enable' )
|
|
vim.cmd( 'filetype plugin indent on' )
|
|
|
|
vim.cmd( 'colorscheme slate' )
|
|
|
|
vim.cmd [[
|
|
highlight Normal guibg=NONE ctermbg=NONE
|
|
highlight NonText guibg=NONE ctermbg=NONE
|
|
highlight EndOfBuffer guibg=NONE ctermbg=NONE
|
|
]]
|
|
|
|
vim.cmd [[
|
|
call plug#begin()
|
|
Plug 'preservim/nerdtree'
|
|
Plug 'neovim/nvim-lspconfig'
|
|
call plug#end()
|
|
]]
|
|
|
|
vim.lsp.enable( 'lua_ls' )
|
|
vim.lsp.enable( 'rust_analyzer' )
|
|
|
|
vim.g.mapleader = ' '
|
|
vim.api.nvim_set_keymap( 'n', '<Leader>w', ':w<CR>', { noremap = true, silent = true } )
|