diff options
author | Abouzar Parvan <[email protected]> | 2021-08-19 13:14:55 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-19 13:14:55 +0430 |
commit | a4073e9992010e3bcb429d266bc077dabf5956a7 (patch) | |
tree | 27a199480e56617c6bccb870098c2ae2c419a749 /lua | |
parent | a190306e477a95b7dd91e375c0cf82e0b72b1cd3 (diff) |
support nix language (#1347)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/default-config.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua index 0f9e6daa..09a25fd3 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -1301,6 +1301,31 @@ lvim.lang = { }, }, }, + nix = { + formatters = { + -- { + -- exe = "nixfmt", + -- args = {}, + -- }, + }, + linters = {}, + lsp = { + provider = "rnix", + setup = { + cmd = { "rnix-lsp" }, + filetypes = { "nix" }, + init_options = {}, + settings = {}, + root_dir = function(fname) + local util = require "lspconfig/util" + return util.root_pattern ".git"(fname) or vim.fn.getcwd() + end, + on_attach = common_on_attach, + on_init = common_on_init, + capabilities = common_capabilities, + }, + }, + }, } require("keymappings").config() |