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")

@ -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 = {
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
},
install = { colorscheme = { "catppuccin" } },
change_detection = {
notify = false,
},
checker = { enabled = true }, -- automatically check for plugin updates
change_detection = { notify = false },
checker = { enabled = true },
performance = {
rtp = {
disabled_plugins = {

@ -1,6 +1,5 @@
-- 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
-- Add any additional options here
vim.opt.conceallevel = 0
vim.opt.clipboard = ""

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

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

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

Loading…
Cancel
Save