Compare commits

..

7 Commits

Author SHA1 Message Date
Fabian Schmidt
15d27dc96a Update config: tsserver -> ts_ls, add nvim-nio as dap-ui dep 2024-10-31 14:31:08 +01:00
e777391307 get $HOME instead of setting home_dir manually 2024-03-02 15:11:55 +01:00
Fabian Schmidt
9f6b6776c2 added trouble.nvim 2024-01-18 12:43:07 +01:00
Fabian Schmidt
8c82f7cab4 replace rust-tools with rustaceanvim 2024-01-17 15:10:36 +01:00
Fabian Schmidt
4da8e11ada Update 04.01.24 2024-01-04 20:45:30 +01:00
Fabian Schmidt
ac2447ac6e Update 03.01.24 2024-01-03 13:17:03 +01:00
Fabian Schmidt
fd5401c9d7 Removed null-ls and some other stuff 2023-09-23 14:54:20 +02:00
6 changed files with 91 additions and 67 deletions

View File

@@ -17,7 +17,7 @@ require("maps").init()
require("commands") require("commands")
vim.opt.backup = false vim.opt.backup = false
vim.opt.undodir = '/Users/fschmidt/.cache/nvim/undodir' vim.opt.undodir = os.getenv("HOME") .. '/.cache/nvim/undodir'
vim.opt.swapfile = false vim.opt.swapfile = false
vim.opt.undofile = true vim.opt.undofile = true
vim.opt.smartcase = true vim.opt.smartcase = true

View File

@@ -1,36 +1,37 @@
{ {
"LuaSnip": { "branch": "master", "commit": "bc8ec05022743d3f08bda7a76c6bb5e9a9024581" }, "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
"bufferline.nvim": { "branch": "main", "commit": "52d6acabb79c8c0942f8873a0ca7848eb2159267" }, "bufferline.nvim": { "branch": "main", "commit": "5c528bee3dd797d5bd6bae5f229411939b25b203" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "8fcc934a52af96120fe26358985c10c035984b53" }, "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
"cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" }, "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" }, "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" },
"cmp-nvim-lua": { "branch": "main", "commit": "f3491638d123cfd2c8048aefaf66d246ff250ca6" }, "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
"dashboard-nvim": { "branch": "master", "commit": "4c2b038c5cfa70f90506f1551e5fd2d040174e08" }, "dashboard-nvim": { "branch": "master", "commit": "d2c5a4d1341f5ca1ed2ecb4ecfcff2bc8ea18b14" },
"fidget.nvim": { "branch": "main", "commit": "0ba1e16d07627532b6cae915cc992ecac249fb97" }, "fidget.nvim": { "branch": "main", "commit": "e2a175c2abe2d4f65357da1c98c59a5cfb2b543f" },
"gitsigns.nvim": { "branch": "main", "commit": "f412f51d0eaf0905a2759c8087090071689bb8fb" }, "gitsigns.nvim": { "branch": "main", "commit": "7c27a30450130cd59c4994a6755e3c5d74d83e76" },
"kanagawa.nvim": { "branch": "master", "commit": "5c4037432f0ae2d0b75d3a7b7cfa3022d7054e4d" }, "kanagawa.nvim": { "branch": "master", "commit": "f491b0fe68fffbece7030181073dfe51f45cda81" },
"lazy.nvim": { "branch": "main", "commit": "57cce98dfdb2f2dd05a0567d89811e6d0505e13b" }, "lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" },
"lspkind-nvim": { "branch": "master", "commit": "c68b3a003483cf382428a43035079f78474cd11e" }, "lspkind-nvim": { "branch": "master", "commit": "a700f1436d4a938b1a1a93c9962dc796afbaef4d" },
"lualine.nvim": { "branch": "master", "commit": "c28a7427c3fb29322db136f0564ec58807b26747" }, "lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
"lunar.nvim": { "branch": "master", "commit": "08bbc93b96ad698d22fc2aa01805786bcedc34b9" }, "lunar.nvim": { "branch": "master", "commit": "08bbc93b96ad698d22fc2aa01805786bcedc34b9" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "b64fdede85fd5e0b720ce722919e0a9b95ed6547" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "4d0e5b49363cac187326998b96aa6a2884e0e89b" },
"mason.nvim": { "branch": "main", "commit": "46abd3ff86c74294fed9a530ec872ec7a4680bef" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"null-ls.nvim": { "branch": "main", "commit": "defa0518762abb32279d601443344fb9773f9330" }, "nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" },
"nvim-autopairs": { "branch": "master", "commit": "0fd6519d44eac3a6736aafdb3fe9da916c3701d4" }, "nvim-cmp": { "branch": "main", "commit": "29fb4854573355792df9e156cb779f0d31308796" },
"nvim-cmp": { "branch": "main", "commit": "777450fd0ae289463a14481673e26246b5e38bf2" }, "nvim-dap": { "branch": "master", "commit": "7ff6936010b7222fea2caea0f67ed77f1b7c60dd" },
"nvim-dap": { "branch": "master", "commit": "1dd02e82c77d558e30ba831db4c2e7ed534e874f" }, "nvim-dap-ui": { "branch": "master", "commit": "ffa89839f97bad360e78428d5c740fdad9a0ff02" },
"nvim-dap-ui": { "branch": "master", "commit": "56a2df0e96bfa64ebd6967e7cad877a1530633d5" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "52638640ae309cacdaff785fdbb854437bd1ee5c" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "8db23ea51203b5f00ad107a0cef7e0b2d7a0476c" }, "nvim-lspconfig": { "branch": "master", "commit": "54617a18f4cf46f0c2f6d024fa6feb7515fe036d" },
"nvim-lspconfig": { "branch": "master", "commit": "0bc0c38e1b11dfb6b5f1794d53869f89ccf9e78f" }, "nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
"nvim-tree.lua": { "branch": "master", "commit": "94e3b0990017a42fa4581ea3d0bc08b897727d4d" }, "nvim-tree.lua": { "branch": "master", "commit": "120ba58254835d412bbc91cffe847e9be835fadd" },
"nvim-treesitter": { "branch": "master", "commit": "9711139326284ddb2c6f1d29783a162c08b47bb8" }, "nvim-treesitter": { "branch": "master", "commit": "f9e9370a6f710148f4a3f3f4f23d5349c85c2888" },
"nvim-web-devicons": { "branch": "master", "commit": "0568104bf8d0c3ab16395433fcc5c1638efc25d4" }, "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
"playground": { "branch": "master", "commit": "4044b53c4d4fcd7a78eae20b8627f78ce7dc6f56" }, "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
"plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"rust-tools.nvim": { "branch": "master", "commit": "71d2cf67b5ed120a0e31b2c8adb210dd2834242f" }, "rustaceanvim": { "branch": "master", "commit": "bc8c4b8f7606d5b7c067cd8369e25c1a7ff77bd0" },
"telescope.nvim": { "branch": "master", "commit": "c1a2af0af69e80e14e6b226d3957a064cd080805" }, "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"vimwiki": { "branch": "dev", "commit": "dec6a9ecab3e5ec9ceff28b84cabb5c62d05ee9f" } "trouble.nvim": { "branch": "main", "commit": "2f3b537f2207ce32f4459f9d56746ee013b5e01b" },
"vimwiki": { "branch": "dev", "commit": "72792615e739d0eb54a9c8f7e0a46a6e2407c9e8" }
} }

View File

@@ -8,7 +8,7 @@ return {
config = function() config = function()
require("dapui").setup() require("dapui").setup()
end, end,
dependencies = { 'mfussenegger/nvim-dap' } dependencies = { 'mfussenegger/nvim-dap', 'nvim-neotest/nvim-nio' }
}, },
{ {
'theHamsta/nvim-dap-virtual-text', 'theHamsta/nvim-dap-virtual-text',

View File

@@ -8,6 +8,8 @@ local lsp_attach = function(client, buf)
vim.api.nvim_buf_set_option(buf, "omnifunc", "v:lua.vim.lsp.omnifunc") vim.api.nvim_buf_set_option(buf, "omnifunc", "v:lua.vim.lsp.omnifunc")
vim.api.nvim_buf_set_option(buf, "tagfunc", "v:lua.vim.lsp.tagfunc") vim.api.nvim_buf_set_option(buf, "tagfunc", "v:lua.vim.lsp.tagfunc")
vim.lsp.inlay_hint.enable(buf, true)
local bufopts = { noremap = true, silent = true, buffer = buf } local bufopts = { noremap = true, silent = true, buffer = buf }
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts) vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
@@ -66,7 +68,7 @@ return {
}, },
on_attach = lsp_attach on_attach = lsp_attach
} }
lspconfig.tsserver.setup { lspconfig.ts_ls.setup {
capabilities = capabilities, capabilities = capabilities,
on_attach = lsp_attach on_attach = lsp_attach
} }
@@ -78,17 +80,6 @@ return {
-- capabilities = capabilities, -- capabilities = capabilities,
-- on_attach = lsp_attach -- on_attach = lsp_attach
--} --}
require("rust-tools").setup({
server = {
capabilities = capabilities,
on_attach = lsp_attach,
standalone = false
},
dap = {
adapter = require('rust-tools.dap').get_codelldb_adapter(
codelldb_path, liblldb_path)
}
})
lspconfig.bashls.setup { lspconfig.bashls.setup {
capabilities = capabilities, capabilities = capabilities,
on_attach = lsp_attach on_attach = lsp_attach
@@ -120,7 +111,46 @@ return {
}) })
end end
}, },
{ 'simrat39/rust-tools.nvim' }, {
'mrcjkb/rustaceanvim',
version = "^3",
ft = { "rust" },
config = function()
vim.g.rustaceanvim = {
server = {
on_attach = lsp_attach,
settings = {
-- rust-analyzer language server configuration
["rust-analyzer"] = {
rustfmt = {
extraArgs = { "+nightly" },
},
cargo = {
allFeatures = true,
loadOutDirsFromCheck = true,
runBuildScripts = true,
},
-- Add clippy lints for Rust.
checkOnSave = {
allFeatures = true,
command = "clippy",
extraArgs = { "--no-deps" },
},
-- TODO this breaks diagnostics, look into what can be done
-- procMacro = {
-- enable = true,
-- ignored = {
-- ["async-trait"] = { "async_trait" },
-- ["napi-derive"] = { "napi" },
-- ["async-recursion"] = { "async_recursion" },
-- },
-- },
},
},
}
}
end
},
{ 'onsails/lspkind-nvim' }, -- pictograms replace (?) with lspsaga { 'onsails/lspkind-nvim' }, -- pictograms replace (?) with lspsaga
{ {
'j-hui/fidget.nvim', 'j-hui/fidget.nvim',
@@ -209,6 +239,8 @@ return {
}, },
{ {
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
version = "v2.*",
build = "make install_jsregexp",
config = function() config = function()
require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/snippets/" }) require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/snippets/" })
end end
@@ -218,16 +250,12 @@ return {
config = true config = true
}, },
{ {
'jose-elias-alvarez/null-ls.nvim', "folke/trouble.nvim",
config = function() dependencies = { "nvim-tree/nvim-web-devicons" },
local null_ls = require('null-ls') opts = {
local sources = { -- your configuration comes here
null_ls.builtins.formatting.prettierd.with({ -- or leave it empty to use the default settings
filetypes = { "html", "json", "yaml", "markdown" }, -- refer to the configuration section below
-- extra_filetypes = { "toml" }, -- find out how to install plugins / wait for mason to support them },
}), },
}
null_ls.setup({ sources = sources })
end
}
} }

View File

@@ -1,7 +1,7 @@
return { return {
{ {
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
tag = '0.1.1', version = '0.1.*',
dependencies = { 'nvim-lua/plenary.nvim' }, dependencies = { 'nvim-lua/plenary.nvim' },
}, },
{ {
@@ -10,12 +10,7 @@ return {
require('nvim-tree').setup { require('nvim-tree').setup {
view = { view = {
width = 30, width = 30,
hide_root_folder = false,
side = 'left', side = 'left',
mappings = {
custom_only = false,
list = {}
}
}, },
} }
end, end,

View File

@@ -28,7 +28,7 @@ return {
}, },
{ {
'akinsho/bufferline.nvim', 'akinsho/bufferline.nvim',
tag = "v3.3.0", version = "*",
config = true, config = true,
dependencies = { 'nvim-tree/nvim-web-devicons' } dependencies = { 'nvim-tree/nvim-web-devicons' }
}, },