Refactor directory structure
This commit is contained in:
parent
b9d1194133
commit
82abe92d8b
8 changed files with 41 additions and 9 deletions
10
home/.config/nvim/lua/pluginconf/airline.lua
Normal file
10
home/.config/nvim/lua/pluginconf/airline.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
local g = vim.g
|
||||
local o = vim.o
|
||||
|
||||
o.showmode = false
|
||||
o.laststatus = 2
|
||||
g["airline#extensions#tabline#enabled"] = 1
|
||||
g.airline_powerline_fonts = 1
|
||||
g.airline_section_warning = ''
|
||||
g.airline_section_error = ''
|
||||
g.airline_theme = 'onedark'
|
3
home/.config/nvim/lua/pluginconf/completion.lua
Normal file
3
home/.config/nvim/lua/pluginconf/completion.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
local o = vim.o
|
||||
|
||||
o.completeopt = 'menuone,noinsert,noselect'
|
29
home/.config/nvim/lua/pluginconf/lsp.lua
Normal file
29
home/.config/nvim/lua/pluginconf/lsp.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
require'lspconfig'.rust_analyzer.setup {
|
||||
on_attach = require'completion'.on_attach
|
||||
}
|
||||
|
||||
local sumneko_binary = '/usr/bin/lua-language-server'
|
||||
require'lspconfig'.sumneko_lua.setup {
|
||||
cmd = {sumneko_binary},
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||
version = 'LuaJIT',
|
||||
-- Setup your lua path
|
||||
path = vim.split(package.path, ';')
|
||||
},
|
||||
diagnostics = {
|
||||
-- Get the language server to recognize the `vim` global
|
||||
globals = {'vim'}
|
||||
},
|
||||
workspace = {
|
||||
-- Make the server aware of Neovim runtime files
|
||||
library = {
|
||||
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
|
||||
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
6
home/.config/nvim/lua/pluginconf/treesitter.lua
Normal file
6
home/.config/nvim/lua/pluginconf/treesitter.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = 'maintained',
|
||||
highlight = {enable = true},
|
||||
indent = {enable = true},
|
||||
incremental_selection = {enable = true}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue