1
1
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
Gaiety
8dc4bf255c buffer bar 2026-04-04 20:26:12 -06:00
Gaiety
36d393a994 better lsp and linting 2026-04-04 20:15:39 -06:00
7 changed files with 41 additions and 10 deletions

27
nvim/lua/buffers.lua Normal file
View file

@ -0,0 +1,27 @@
vim.pack.add({
'https://github.com/nvim-tree/nvim-web-devicons',
'https://github.com/lewis6991/gitsigns.nvim',
'https://github.com/romgrk/barbar.nvim',
})
-- Keys
vim.keymap.set('n',
'<tab>',
'<cmd>BufferNext<cr>',
{ desc = 'Buffer Next' }
)
vim.keymap.set('n',
'<s-tab>',
'<cmd>BufferPrevious<cr>',
{ desc = 'Buffer Previous' }
)
vim.keymap.set('n',
'<leader><leader>',
'<cmd>b#<cr>',
{ desc = 'Buffer Last' }
)
vim.keymap.set('n',
'<leader>w',
'<cmd>BufferClose<cr>',
{ desc = 'Buffer Close' }
)

3
nvim/lua/linter.lua Normal file
View file

@ -0,0 +1,3 @@
vim.pack.add({
'https://github.com/dense-analysis/ale',
})

View file

@ -1,15 +1,16 @@
vim.pack.add({
'https://github.com/neovim/nvim-lspconfig'
'https://github.com/neovim/nvim-lspconfig',
'https://github.com/mason-org/mason.nvim',
'https://github.com/rachartier/tiny-inline-diagnostic.nvim',
})
-- .ts .js
vim.lsp.enable('typescript')
-- mason
require("mason").setup()
-- .lua
vim.lsp.config('luals', {
cmd = {'lua-language-server'},
filetypes = {'lua'},
root_markers = {'.luarc.json', '.luarc.jsonc'},
-- diagnostics
require("tiny-inline-diagnostic").setup({
-- Choose a preset style for diagnostic appearance
-- Available: "modern", "classic", "minimal", "powerline", "ghost", "simple", "nonerdfont", "amongus"
preset = "modern",
})
vim.lsp.enable('luals')
require("tiny-inline-diagnostic").enable()