mirror of
https://github.com/kossLAN/nvim-flake.git
synced 2025-11-05 02:09:49 -05:00
qol changes to formatters/keymaps
This commit is contained in:
parent
e54bd1fe69
commit
f0b0787c91
7 changed files with 24 additions and 21 deletions
|
|
@ -1,5 +1,5 @@
|
|||
-- Exit if the language server isn't available
|
||||
if vim.fn.executable('nixd') ~= 1 then
|
||||
if vim.fn.executable('nil') ~= 1 then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
@ -11,8 +11,8 @@ local root_files = {
|
|||
local lsp = require('user.lsp')
|
||||
|
||||
vim.lsp.start {
|
||||
name = 'nixd',
|
||||
cmd = { 'nixd' },
|
||||
name = 'nil',
|
||||
cmd = { 'nil' },
|
||||
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
|
||||
capabilities = lsp.make_client_capabilities(),
|
||||
on_attach = lsp.on_attach,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue