Initial experiments with Lua config

This commit is contained in:
2024-03-02 11:29:43 +00:00
commit 20954190a8
8 changed files with 208 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
return {
'rose-pine/neovim', name = 'rose-pine',
config = function()
require('rose-pine').setup({
styles = {
transparency = true,
},
})
vim.cmd('colorscheme rose-pine')
end
}

View File

@@ -0,0 +1,46 @@
return {
'neovim/nvim-lspconfig',
dependencies = {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'neovim/nvim-lspconfig',
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline',
'hrsh7th/nvim-cmp',
'folke/neodev.nvim',
-- TODO: https://github.com/j-hui/fidget.nvim
-- TODO: https://github.com/nvimtools/none-ls.nvim
-- TODO: https://github.com/mfussenegger/nvim-dap
-- TODO: https://github.com/rcarriga/nvim-dap-ui
},
config = function()
require('neodev').setup()
require('mason').setup()
require('mason-lspconfig').setup({
ensure_installed = {
'clangd',
'cmake',
'lua_ls',
},
automatic_installation = false,
handlers = {
function(server_name)
require('lspconfig')[server_name].setup({})
end,
},
})
require('cmp').setup({
sources = {
{ name = 'nvim_lsp' },
-- TODO: snippets
},
})
end,
}

View File

@@ -0,0 +1,9 @@
return {
'nvim-lualine/lualine.nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
-- config = function()
-- require('lualine').setup()
-- end
}

View File

@@ -0,0 +1,66 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
require('nvim-treesitter').setup()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = {
"asm",
"bash",
"c",
"cmake",
"cpp",
"css",
"csv",
"cuda",
"diff",
"disassembly",
"dockerfile",
"dot",
"doxygen",
"git_config",
"git_rebase",
"gitattributes",
"gitignore",
"glsl",
"gpg",
"hlsl",
"html",
"ini",
"javascript",
"jq",
"json",
"llvm",
"lua",
"make",
"meson",
"ninja",
"objc",
"objdump",
"printf",
"proto",
"python",
"query",
"regex",
"requirements",
"rst",
"ssh_config",
"strace",
"tmux",
"toml",
"vim",
"vimdoc",
"xml",
"yaml",
},
sync_install = false,
highlight = {
enable = true,
},
indent = {
enable = true,
},
})
end
}