From f31c6ec566f4e6cd30a082d1a1ec13102e5b77ce Mon Sep 17 00:00:00 2001 From: He4eT Date: Thu, 4 Apr 2024 01:09:34 +0200 Subject: [PATCH] nvim: stylua --- nvim/init.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index 5f0de12..b17d986 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -162,12 +162,12 @@ require('lazy').setup({ dependencies = { 'tpope/vim-repeat', }, - config = function () - local leap = require('leap') + config = function() + local leap = require 'leap' leap.add_default_mappings() leap.opts.highlight_unlabeled_phase_one_targets = true leap.opts.safe_labels = {} - end + end, }, { -- Set lualine as statusline 'nvim-lualine/lualine.nvim', @@ -233,7 +233,7 @@ require('lazy').setup({ build = './install --bin', }, }, - config = function () + config = function() local fzf = require 'fzf-lua' fzf.setup { @@ -317,7 +317,7 @@ require('lazy').setup({ vim.keymap.set({ 'n' }, 'f?', fzf.keymaps, { desc = '[F]zf: keymaps' }) vim.keymap.set({ 'n' }, 'f/', fzf.search_history, { desc = '[F]zf: search history' }) vim.keymap.set({ 'n' }, 'f:', fzf.command_history, { desc = '[F]zf: command history' }) - end + end, }, { -- LSP Configuration & Plugins 'neovim/nvim-lspconfig', @@ -343,7 +343,7 @@ require('lazy').setup({ 'nvim-treesitter/nvim-treesitter-textobjects', }, build = ':TSUpdate', - config = function () + config = function() require('nvim-treesitter.configs').setup { ensure_installed = { 'vim', @@ -414,7 +414,7 @@ require('lazy').setup({ }, }, } - end + end, }, { 'nomnivore/ollama.nvim', @@ -548,9 +548,7 @@ local servers = { plugins = { { name = '@vue/typescript-plugin', - location = require('mason-registry') - .get_package('vue-language-server') - :get_install_path() .. '/node_modules/@vue/language-server', + location = require('mason-registry').get_package('vue-language-server'):get_install_path() .. '/node_modules/@vue/language-server', languages = { 'vue' }, }, },