Skip to content

Commit e8af01f

Browse files
Update init.lua
1 parent 59fe0ec commit e8af01f

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

init.lua

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ vim.opt.scrolloff = 10
161161
vim.opt.hlsearch = true
162162
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
163163

164+
-- use <C-n> to open and close the file tree
165+
vim.keymap.set('n', '<C-n>', '<cmd>Ex<CR>')
166+
164167
-- Diagnostic keymaps
165168
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' })
166169
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' })
@@ -548,6 +551,8 @@ require('lazy').setup({
548551
-- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features.
549552
-- - settings (table): Override the default settings passed when initializing the server.
550553
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
554+
--
555+
--
551556
local servers = {
552557
-- clangd = {},
553558
-- gopls = {},
@@ -560,7 +565,14 @@ require('lazy').setup({
560565
--
561566
-- But for many setups, the LSP (`tsserver`) will work just fine
562567
-- tsserver = {},
563-
--
568+
volar = {
569+
filetypes = { 'typescript', 'javascript', 'typescriptreact', 'javascriptreact', 'vue' },
570+
init_options = {
571+
vue = {
572+
hybridMode = false
573+
}
574+
}
575+
},
564576

565577
lua_ls = {
566578
-- cmd = {...},
@@ -586,6 +598,7 @@ require('lazy').setup({
586598
-- return require('lspconfig').util.root_pattern('*.sln', '*.csproj', '*.fsproj', '*.vbproj', '*.vcxproj')(fname) or vim.fn.getcwd()
587599
-- end,
588600
-- },
601+
--
589602
}
590603

591604
require("neodev").setup({})
@@ -622,6 +635,13 @@ require('lazy').setup({
622635
end,
623636
},
624637

638+
-- Vim Razor
639+
{
640+
'jlcrochet/vim-razor',
641+
lazy = false,
642+
ft = 'cshtml'
643+
},
644+
625645
-- Prime's Harpoon2
626646
{
627647
'ThePrimeagen/harpoon',
@@ -835,7 +855,7 @@ require('lazy').setup({
835855
-- Load the colorscheme here.
836856
-- Like many other themes, this one has different styles, and you could load
837857
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
838-
vim.cmd.colorscheme 'tokyonight-night'
858+
vim.cmd.colorscheme 'tokyonight-moon'
839859

840860
-- You can configure highlights by doing something like:
841861
vim.cmd.hi 'Comment gui=none'

0 commit comments

Comments
 (0)