Skip to content

Commit b14e1a0

Browse files
committed
refact: stylua
1 parent 29c7dc0 commit b14e1a0

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

init.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ require('lazy').setup({
8484

8585
-- Useful status updates for LSP
8686
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
87-
{ 'j-hui/fidget.nvim', opts = {} },
87+
{ 'j-hui/fidget.nvim', opts = {} },
8888

8989
-- Additional lua configuration, makes nvim stuff amazing!
9090
'folke/neodev.nvim',
@@ -94,11 +94,11 @@ require('lazy').setup({
9494
{
9595
-- Autocompletion
9696
'hrsh7th/nvim-cmp',
97-
dependencies = { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip',"rafamadriz/friendly-snippets", },
97+
dependencies = { 'hrsh7th/cmp-nvim-lsp', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip', 'rafamadriz/friendly-snippets' },
9898
},
9999

100100
-- Useful plugin to show you pending keybinds.
101-
{ 'folke/which-key.nvim', opts = {} },
101+
{ 'folke/which-key.nvim', opts = {} },
102102
{
103103
-- Adds git releated signs to the gutter, as well as utilities for managing changes
104104
'lewis6991/gitsigns.nvim',
@@ -115,7 +115,7 @@ require('lazy').setup({
115115
vim.keymap.set('n', '[c', require('gitsigns').prev_hunk, { buffer = bufnr, desc = 'Go to Previous Hunk' })
116116
vim.keymap.set('n', ']c', require('gitsigns').next_hunk, { buffer = bufnr, desc = 'Go to Next Hunk' })
117117
vim.keymap.set('n', '<leader>ph', require('gitsigns').preview_hunk, { buffer = bufnr, desc = '[P]review [H]unk' })
118-
end
118+
end,
119119
},
120120
},
121121

@@ -154,10 +154,10 @@ require('lazy').setup({
154154
},
155155

156156
-- "gc" to comment visual regions/lines
157-
{ 'numToStr/Comment.nvim', opts = {} },
157+
{ 'numToStr/Comment.nvim', opts = {} },
158158

159159
-- Fuzzy Finder (files, lsp, etc)
160-
{ 'nvim-telescope/telescope.nvim', branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } },
160+
{ 'nvim-telescope/telescope.nvim', branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } },
161161

162162
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
163163
-- Only load if `make` is available. Make sure you have the system
@@ -178,7 +178,7 @@ require('lazy').setup({
178178
dependencies = {
179179
'nvim-treesitter/nvim-treesitter-textobjects',
180180
},
181-
build = ":TSUpdate",
181+
build = ':TSUpdate',
182182
},
183183

184184
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
@@ -361,10 +361,10 @@ require('nvim-treesitter.configs').setup {
361361
}
362362

363363
-- Diagnostic keymaps
364-
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = "Go to previous diagnostic message" })
365-
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = "Go to next diagnostic message" })
366-
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = "Open floating diagnostic message" })
367-
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = "Open diagnostics list" })
364+
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous diagnostic message' })
365+
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' })
366+
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' })
367+
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' })
368368

369369
-- LSP settings.
370370
-- This function gets run when an LSP connects to a particular buffer.
@@ -458,7 +458,7 @@ mason_lspconfig.setup_handlers {
458458
-- nvim-cmp setup
459459
local cmp = require 'cmp'
460460
local luasnip = require 'luasnip'
461-
require("luasnip.loaders.from_vscode").lazy_load()
461+
require('luasnip.loaders.from_vscode').lazy_load()
462462
luasnip.config.setup {}
463463

464464
cmp.setup {

0 commit comments

Comments
 (0)