This commit is contained in:
Jannik Donker
2024-04-07 11:40:22 +02:00
parent 527d184422
commit 9d9108f2c2
11 changed files with 115 additions and 38 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"diagnostics.globals": [
"vim"
]
}
+1 -3
View File
@@ -5,7 +5,7 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
"clone", "clone",
"--filter=blob:none", "--filter=blob:none",
"https://github.com/folke/lazy.nvim.git", "https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release "--branch=stable",
lazypath, lazypath,
}) })
end end
@@ -13,5 +13,3 @@ vim.opt.rtp:prepend(lazypath)
require("vim-options") require("vim-options")
require("lazy").setup("plugins") require("lazy").setup("plugins")
+6
View File
@@ -2,10 +2,16 @@
"catppuccin": { "branch": "main", "commit": "aebe43db9cb26e1c70fc5b2fd4158169c405e720" }, "catppuccin": { "branch": "main", "commit": "aebe43db9cb26e1c70fc5b2fd4158169c405e720" },
"lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" }, "lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" },
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" }, "lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "9dfcf2036c223920826140f0151d929a43f9eceb" },
"mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "16d1b194376bf1fc2acd89ccb3c29ba8315bfcea" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "16d1b194376bf1fc2acd89ccb3c29ba8315bfcea" },
"none-ls-extras.nvim": { "branch": "main", "commit": "f0746bf4f1a21d6e1d2002f671fb9b46d2146de7" },
"none-ls.nvim": { "branch": "main", "commit": "0d42ba8d506242b2252d2d2885a7f6f4f5b2bcb2" },
"nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" }, "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" },
"nvim-lspconfig": { "branch": "master", "commit": "9619e53d3f99f0ca4ea3b88f5d97fce703131820" },
"nvim-treesitter": { "branch": "master", "commit": "a2d6678bb21052013d0dd7cb35dffbac13846c98" }, "nvim-treesitter": { "branch": "master", "commit": "a2d6678bb21052013d0dd7cb35dffbac13846c98" },
"nvim-web-devicons": { "branch": "master", "commit": "e2e3475c7bffbafbda19df2be6ffd04f6d1a3e16" }, "nvim-web-devicons": { "branch": "master", "commit": "e2e3475c7bffbafbda19df2be6ffd04f6d1a3e16" },
"plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" }, "plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" } "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" }
} }
+2 -3
View File
@@ -4,7 +4,6 @@ return {
lazy = false, lazy = false,
priority = 1000, priority = 1000,
config = function() config = function()
vim.cmd.colorscheme "catppuccin-mocha" vim.cmd.colorscheme("catppuccin-mocha")
end end,
} }
+31
View File
@@ -0,0 +1,31 @@
return {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end,
},
{
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = { "lua_ls", "tsserver", "svelte", "tailwindcss", "cssls", "rust_analyzer" },
})
end,
},
{
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require("lspconfig")
lspconfig.lua_ls.setup({})
lspconfig.tsserver.setup({})
lspconfig.svelte.setup({})
lspconfig.tailwindcss.setup({})
lspconfig.cssls.setup({})
lspconfig.rust_analyzer.setup({})
vim.keymap.set("n", "gd", vim.lsp.buf.definition, {})
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
vim.keymap.set({ "n", "v" }, "<leader>ca", vim.lsp.buf.code_action, {})
end,
},
}
+4 -4
View File
@@ -1,11 +1,11 @@
return { return {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },
config = function () config = function()
require("lualine").setup({ require("lualine").setup({
options = { options = {
theme = "dracula" theme = "dracula",
} },
}) })
end end,
} }
+5 -3
View File
@@ -1,9 +1,11 @@
return { return {
{"nvim-neo-tree/neo-tree.nvim", branch = "v3.x", {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = { dependencies = {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
} },
} },
} }
+22
View File
@@ -0,0 +1,22 @@
return {
"nvimtools/none-ls.nvim",
dependencies = {
"nvimtools/none-ls-extras.nvim",
},
config = function()
local null_ls = require("null-ls")
null_ls.setup({
sources = {
require("none-ls.diagnostics.eslint_d"),
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.isort,
null_ls.builtins.formatting.prettier.with({
extra_filetypes = { "svelte" },
}),
},
})
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})
end,
}
+17 -2
View File
@@ -1,12 +1,27 @@
return { return {
{
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
tag = "0.1.6", tag = "0.1.6",
dependencies = { dependencies = {
"vim-lua/plenary.nvim" "vim-lua/plenary.nvim",
}, },
config = function() config = function()
local builtin = require("telescope.builtin") local builtin = require("telescope.builtin")
vim.keymap.set("n", "<C-f>", builtin.find_files, {}) vim.keymap.set("n", "<C-f>", builtin.find_files, {})
vim.keymap.set("n", "<C-g>", builtin.live_grep, {}) vim.keymap.set("n", "<C-g>", builtin.live_grep, {})
end end,
},
{
"nvim-telescope/telescope-ui-select.nvim",
config = function()
require("telescope").setup({
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown({}),
},
},
})
require("telescope").load_extension("ui-select")
end,
},
} }
+3 -2
View File
@@ -6,9 +6,10 @@ return {
vim.keymap.set("n", "<C-t>", ":Neotree toggle<CR>") vim.keymap.set("n", "<C-t>", ":Neotree toggle<CR>")
configs.setup({ configs.setup({
ensure_installed = {"lua", "javascript", "html", "css", "rust", "typescript", "python"}, ensure_installed = { "lua", "javascript", "html", "css", "svelte", "rust", "typescript", "python" },
auto_isntall = { enable = true },
highlight = { enable = true }, highlight = { enable = true },
indent = { enable = true }, indent = { enable = true },
}) })
end end,
} }
+1 -3
View File
@@ -1,6 +1,4 @@
vim.cmd("set tabstop=4") vim.cmd("set tabstop=4")
vim.cmd("set shiftwidth=4") vim.cmd("set shiftwidth=4")
vim.wo.relativenumber = true vim.wo.relativenumber = true
vim.g.mapleader = "," vim.g.mapleader = " "