mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
refactor(flake): tidy up inputs attrset
This commit is contained in:
parent
7e87ede672
commit
4dfe6c4c33
9 changed files with 263 additions and 295 deletions
|
|
@ -29,7 +29,12 @@ return {
|
|||
},
|
||||
config = function()
|
||||
local lspconfig = require('lspconfig')
|
||||
local capabilities = require("blink.cmp").get_lsp_capabilities()
|
||||
local capabilities = vim.tbl_deep_extend(
|
||||
'force',
|
||||
{},
|
||||
require("blink.cmp").get_lsp_capabilities(),
|
||||
vim.lsp.protocol.make_client_capabilities()
|
||||
)
|
||||
lspconfig.gopls.setup {
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
|
|
@ -94,12 +99,6 @@ return {
|
|||
if not client then
|
||||
return
|
||||
end
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'K',
|
||||
vim.lsp.buf.hover,
|
||||
{ buffer = ev.buf, noremap = true, silent = true, desc = 'vim.lsp.buf.hover()' }
|
||||
)
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'grt',
|
||||
|
|
@ -112,6 +111,12 @@ return {
|
|||
'<cmd>Trouble lsp_document_symbols toggle win.position=left <CR>',
|
||||
{ buffer = ev.buf, noremap = true, silent = true, desc = 'Trouble LSP symbols' }
|
||||
)
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'grd',
|
||||
'<cmd>Trouble lsp_definitions toggle win.position=left <CR>',
|
||||
{ buffer = ev.buf, noremap = true, silent = true, desc = 'Trouble LSP definition' }
|
||||
)
|
||||
vim.keymap.set(
|
||||
'n',
|
||||
'grl',
|
||||
|
|
@ -138,6 +143,9 @@ return {
|
|||
{
|
||||
'stevearc/conform.nvim',
|
||||
event = 'VeryLazy',
|
||||
keys = {
|
||||
{ "\\f", function() require("conform").format({}) end, mode = { "n", "x" } },
|
||||
},
|
||||
opts = {
|
||||
notify_no_formatters = false,
|
||||
formatters_by_ft = {
|
||||
|
|
@ -145,7 +153,7 @@ return {
|
|||
puppet = { "puppet-lint" },
|
||||
['*'] = { 'trim_whitespace' }
|
||||
},
|
||||
format_on_save = {
|
||||
default_format_opts = {
|
||||
timeout_ms = 500,
|
||||
lsp_format = "last",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue