mirror of
https://github.com/don-philipe/dotfiles.git
synced 2025-11-08 22:57:03 +01:00
Compare commits
3 Commits
9803f705e4
...
af50ddd8ea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af50ddd8ea | ||
|
|
7128760315 | ||
|
|
f078314b0d |
@@ -24,4 +24,9 @@ cmp.setup({
|
||||
vim.snippet.expand(args.body)
|
||||
end,
|
||||
},
|
||||
-- switch on rounded borders in floating completion windows
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
})
|
||||
|
||||
23
.config/nvim/lua/config/filetypes.lua
Normal file
23
.config/nvim/lua/config/filetypes.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
vim.api.nvim_create_autocmd('Filetype', {
|
||||
pattern = {
|
||||
'xml',
|
||||
'html',
|
||||
'xhtml',
|
||||
'css',
|
||||
'scss',
|
||||
'javascript',
|
||||
'typescript',
|
||||
'lua',
|
||||
'jsx',
|
||||
'tsx',
|
||||
'typescriptreact',
|
||||
'javascriptreact',
|
||||
'htmldjango'
|
||||
},
|
||||
command = 'setlocal shiftwidth=4 tabstop=4 expandtab'
|
||||
})
|
||||
vim.api.nvim_create_autocmd('Filetype', {
|
||||
pattern = { 'yaml',
|
||||
},
|
||||
command = 'setlocal shiftwidth=2 tabstop=2 expandtab'
|
||||
})
|
||||
@@ -33,6 +33,9 @@ require("lazy").setup({
|
||||
install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
ui = {
|
||||
border = "rounded",
|
||||
},
|
||||
})
|
||||
|
||||
-- Open lazy menu with :Lazy check
|
||||
|
||||
@@ -34,4 +34,9 @@ require'nvim-treesitter.configs'.setup {
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
|
||||
-- indent with treesitter is currently experimental, just mark text and hit "="
|
||||
indent = {
|
||||
enable = true,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user