aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/neodev.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-05-13 15:52:07 +0200
committersrdusr <trevorgray@srdusr.com>2023-05-13 15:52:07 +0200
commitb1c5565924725f7c94e0cd8677ea8914aa0aba45 (patch)
treecee78973c5eabacb9ac6a49386ace3902cd85282 /.config/nvim/lua/plugins/neodev.lua
parent0af6d5533bc0fbcd8038ce134d1bc7b68a9cfbd5 (diff)
parent11a87e76c1cc11e9f7cb1be98a789463e57e827c (diff)
downloaddotfiles-b1c5565924725f7c94e0cd8677ea8914aa0aba45.tar.gz
dotfiles-b1c5565924725f7c94e0cd8677ea8914aa0aba45.zip
Merge commit '7de320718f2b5ee487de4b9fe04661a55674cf37'
Diffstat (limited to '.config/nvim/lua/plugins/neodev.lua')
-rw-r--r--.config/nvim/lua/plugins/neodev.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/neodev.lua b/.config/nvim/lua/plugins/neodev.lua
new file mode 100644
index 0000000..f820422
--- /dev/null
+++ b/.config/nvim/lua/plugins/neodev.lua
@@ -0,0 +1,29 @@
+require("neodev").setup({
+ --library = { plugins = { "nvim-dap-ui" }, types = true },
+ --library = { plugins = { "neotest" }, types = true },
+ library = {
+ enabled = true, -- when not enabled, neodev will not change any settings to the LSP server
+ -- these settings will be used for your Neovim config directory
+ runtime = true, -- runtime path
+ types = true, -- full signature, docs and completion of vim.api, vim.treesitter, vim.lsp and others
+ --plugins = { "neotest" },
+ --{ "nvim-dap-ui" },
+ --plugins = true, -- installed opt or start plugins in packpath
+ -- you can also specify the list of plugins to make available as a workspace library
+ -- plugins = { "nvim-treesitter", "plenary.nvim", "telescope.nvim" },
+ plugins = { "nvim-treesitter", "plenary.nvim", "telescope.nvim", "neotest", "nvim-dap-ui" },
+ },
+ setup_jsonls = true, -- configures jsonls to provide completion for project specific .luarc.json files
+ -- for your Neovim config directory, the config.library settings will be used as is
+ -- for plugin directories (root_dirs having a /lua directory), config.library.plugins will be disabled
+ -- for any other directory, config.library.enabled will be set to false
+ override = function(root_dir, options)
+ end,
+ -- With lspconfig, Neodev will automatically setup your lua-language-server
+ -- If you disable this, then you have to set {before_init=require("neodev.lsp").before_init}
+ -- in your lsp start options
+ lspconfig = true,
+ -- much faster, but needs a recent built of lua-language-server
+ -- needs lua-language-server >= 3.6.0
+ pathStrict = true,
+})