forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.nvim.lua
30 lines (27 loc) · 893 Bytes
/
.nvim.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- Make editing my neovim config files much nicer.
local lspconfig = require("lspconfig")
local capabilities = require("cmp_nvim_lsp").default_capabilities()
-- See https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls
--
-- This overrides what's in the .laurc.json file, and extends it with Neovim's
-- library directories for better completion and hover docs.
local lua_settings = {
Lua = {
runtime = {
version = "LuaJIT",
path = { "config/nvim/lua/?.lua", "config/nvim/lua/?/init.lua" },
pathStrict = true,
},
workspace = {
checkThirdParty = "Disable",
library = {
vim.env.VIMRUNTIME,
"${3rd}/luv/library",
},
},
},
}
lspconfig.lua_ls.setup({
capabilities = capabilities,
settings = lua_settings,
})