Compare commits
2 commits
e42c9129bc
...
8dc4bf255c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8dc4bf255c | ||
|
|
36d393a994 |
7 changed files with 41 additions and 10 deletions
27
nvim/lua/buffers.lua
Normal file
27
nvim/lua/buffers.lua
Normal 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
3
nvim/lua/linter.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
vim.pack.add({
|
||||
'https://github.com/dense-analysis/ale',
|
||||
})
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
BIN
nvim/lua/~/.config/nvim/undo/%home%gaiety%dotfiles%nvim%init.lua
Normal file
BIN
nvim/lua/~/.config/nvim/undo/%home%gaiety%dotfiles%nvim%init.lua
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue