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({
disable_in_macro = true,
})
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local cmp = require('cmp')
cmp.event:on(
'confirm_done',
cmp_autopairs.on_confirm_done()
)
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
local cmp = require("cmp")
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
end,
},
}

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

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