chore(nvim): reformat & tidy up comments

main
sgoudham 1 year ago
parent 9f956c882c
commit b890d6c6bc
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -1,2 +1 @@
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy") require("config.lazy")

@ -1,3 +0,0 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here

@ -19,15 +19,11 @@ require("lazy").setup({
}, },
defaults = { defaults = {
lazy = false, lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit version = false, -- always use the latest git commit
}, },
install = { colorscheme = { "catppuccin" } }, install = { colorscheme = { "catppuccin" } },
change_detection = { change_detection = { notify = false },
notify = false, checker = { enabled = true },
},
checker = { enabled = true }, -- automatically check for plugin updates
performance = { performance = {
rtp = { rtp = {
disabled_plugins = { disabled_plugins = {

@ -1,6 +1,5 @@
-- Options are automatically loaded before lazy.nvim startup -- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.opt.conceallevel = 0 vim.opt.conceallevel = 0
vim.opt.clipboard = "" vim.opt.clipboard = ""

@ -3,8 +3,8 @@ return {
"catppuccin/nvim", "catppuccin/nvim",
name = "catppuccin", name = "catppuccin",
opts = { opts = {
styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): styles = {
comments = { "italic" }, -- Change the style of comments comments = { "italic" },
}, },
integrations = { integrations = {
navic = { navic = {

@ -35,19 +35,13 @@ return {
{ {
"nvim-neo-tree/neo-tree.nvim", "nvim-neo-tree/neo-tree.nvim",
opts = { opts = {
window = { window = { mappings = { ["o"] = "open" } },
mappings = {
["o"] = "open",
},
},
}, },
}, },
{ {
"stevearc/dressing.nvim", "stevearc/dressing.nvim",
opts = { opts = {
input = { input = { insert_only = false },
insert_only = false,
},
}, },
}, },
{ {

@ -1,4 +1,14 @@
return { return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, {
"nix",
})
end
end,
},
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
---@class PluginLspOpts ---@class PluginLspOpts
@ -24,23 +34,15 @@ return {
keys[#keys + 1] = { "gl", vim.diagnostic.open_float, "Line Diagnostics" } keys[#keys + 1] = { "gl", vim.diagnostic.open_float, "Line Diagnostics" }
end, end,
opts = { opts = {
diagnostics = { diagnostics = { underline = false },
underline = false, inlay_hints = { enabled = true },
},
inlay_hints = {
enabled = true,
},
autoformat = false, autoformat = false,
---@type lspconfig.options ---@type lspconfig.options
servers = { servers = {
lua_ls = { lua_ls = {
---@type LazyKeys[] ---@type LazyKeys[]
settings = { settings = {
Lua = { Lua = { telemetry = { enabled = false } },
telemetry = {
enabled = false,
},
},
}, },
}, },
}, },
@ -64,16 +66,7 @@ return {
end end
end, end,
}, },
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, {
"nix",
})
end
end,
},
{ {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
dependencies = { dependencies = {
@ -90,6 +83,7 @@ return {
local luasnip = require("luasnip") local luasnip = require("luasnip")
local cmp = require("cmp") local cmp = require("cmp")
opts.experimental.ghost_text = false
opts.mapping = vim.tbl_extend("force", opts.mapping, { opts.mapping = vim.tbl_extend("force", opts.mapping, {
["<M-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), ["<M-j>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
["<M-k>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), ["<M-k>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
@ -119,23 +113,8 @@ return {
end end
end, { "i", "s" }), end, { "i", "s" }),
}) })
opts.experimental.ghost_text = false
end, end,
}, },
{
"simrat39/rust-tools.nvim",
opts = {
tools = {
inlay_hints = {
auto = false,
},
},
},
},
{
"lervag/vimtex",
},
{ {
"echasnovski/mini.surround", "echasnovski/mini.surround",
opts = { opts = {
@ -150,4 +129,11 @@ return {
}, },
}, },
}, },
{
"simrat39/rust-tools.nvim",
opts = {
tools = { inlay_hints = { auto = false } },
},
},
{ "lervag/vimtex" },
} }

Loading…
Cancel
Save