Initial commit

This commit is contained in:
Jiří Štefka 2024-03-06 02:24:31 +01:00 committed by GitHub
commit e2cff543d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 2701 additions and 0 deletions
nvim/ftplugin

18
nvim/ftplugin/nix.lua Normal file
View file

@ -0,0 +1,18 @@
-- Exit if the language server isn't available
if vim.fn.executable('nil') ~= 1 then
return
end
local root_files = {
'flake.nix',
'default.nix',
'shell.nix',
'.git',
}
vim.lsp.start {
name = 'nil_ls',
cmd = { 'nil' },
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
capabilities = require('user.lsp').make_client_capabilities(),
}