Skip to content

Commit

Permalink
neovim: Improve lua language server config
Browse files Browse the repository at this point in the history
  • Loading branch information
juanibiapina committed Mar 30, 2024
1 parent e64cdba commit 046c633
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
# ignore these directory even though they're already ignored in my global
# configuration to prevent lua-language-server from indexing them
.direnv
.devenv
.local
15 changes: 15 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"Lua": {
"diagnostics.globals": [
"vim",
"awesome",
"screen"
],
"workspace.ignoreDir": [
".direnv",
".devenv",
".local",
]
}
}
3 changes: 0 additions & 3 deletions dotfiles/nvim/.config/nvim/lua/config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
-- Avoid duplicating error that vim is undefined all over the file
local vim = vim

-- Disable mouse
vim.o.mouse = ""

Expand Down
2 changes: 0 additions & 2 deletions dotfiles/nvim/.config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
local vim = vim -- just to prevent errors for the linter

local Plug = vim.fn['plug#']
vim.call('plug#begin')

Expand Down

0 comments on commit 046c633

Please sign in to comment.