Refactor directory structure

This commit is contained in:
Marko Korhonen 2021-01-30 22:52:22 +02:00
parent b9d1194133
commit 82abe92d8b
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
8 changed files with 41 additions and 9 deletions

View 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
}
}
}
}
}