refactor(nvim): reformat with stylua

chezmoi
sgoudham 2 years ago
parent dcd88bf26c
commit 4c00a4bea6
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -5,12 +5,9 @@ return {
require("nvim-autopairs").setup({ require("nvim-autopairs").setup({
disable_in_macro = true, disable_in_macro = true,
}) })
local cmp_autopairs = require('nvim-autopairs.completion.cmp') local cmp_autopairs = require("nvim-autopairs.completion.cmp")
local cmp = require('cmp') local cmp = require("cmp")
cmp.event:on( cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
'confirm_done',
cmp_autopairs.on_confirm_done()
)
end, end,
}, },
} }

@ -48,7 +48,7 @@ return {
TelescopeMatching = { link = "TelescopeNormal" }, TelescopeMatching = { link = "TelescopeNormal" },
TelescopeSelection = { fg = "NONE", bg = cp.surface0 }, TelescopeSelection = { fg = "NONE", bg = cp.surface0 },
TelescopeTitle = { fg = cp.subtext0 }, TelescopeTitle = { fg = cp.subtext0 },
QuickScopePrimary = { fg = cp.maroon }, QuickScopePrimary = { fg = cp.red },
QuickScopeSecondary = { fg = cp.peach }, QuickScopeSecondary = { fg = cp.peach },
-- MiniIndentscopeSymbol = { fg = cp.blue }, -- MiniIndentscopeSymbol = { fg = cp.blue },
}, },

@ -20,6 +20,12 @@ local default_config = {
vim.keymap.set("n", sequence, cmd, { buffer = bufnr, desc = desc }) vim.keymap.set("n", sequence, cmd, { buffer = bufnr, desc = desc })
end end
map("K", vim.lsp.buf.hover, "Hover")
map("]d", vim.diagnostic.goto_next, "Next diagnostic")
map("[d", vim.diagnostic.goto_prev, "Previous diagnostic")
map("gs", vim.lsp.buf.signature_help, "LSP Signature Help")
map("gD", vim.lsp.buf.declaration, "LSP Declarations")
map("gd", function() map("gd", function()
require("telescope.builtin").lsp_definitions() require("telescope.builtin").lsp_definitions()
end, "LSP Definitions") end, "LSP Definitions")
@ -29,9 +35,11 @@ local default_config = {
map("gI", function() map("gI", function()
require("telescope.builtin").lsp_implementations() require("telescope.builtin").lsp_implementations()
end, "LSP Implementations") end, "LSP Implementations")
map("K", vim.lsp.buf.hover, "Hover") map("gl", function()
map("]d", vim.diagnostic.goto_next, "Next diagnostic") vim.diagnostic.open_float(0, {
map("[d", vim.diagnostic.goto_prev, "Previous diagnostic") scope = "line",
})
end)
map("<leader>la", vim.lsp.buf.code_action, "Code Action") map("<leader>la", vim.lsp.buf.code_action, "Code Action")
map("<leader>lr", vim.lsp.buf.rename, "Rename") map("<leader>lr", vim.lsp.buf.rename, "Rename")

@ -0,0 +1,7 @@
column_width = 120
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
collapse_simple_statement = "Never"
Loading…
Cancel
Save