xonecas.io
56101
Df

dotfiles / commit 97973f9

feat: LSPs config

xonecas2026-06-08 97973f944d45b1fba5d7050f1ba6ca6d663642e6 parent b97fc5f

3 files changed

nvim/.luarc.json+5−0
@@ -0,0 +1,5 @@
1+{
2+ "diagnostics.globals": [
3+ "vim"
4+ ]
5+}
nvim/init.lua+35−1
@@ -62,6 +62,14 @@ require("lazy").setup({
6262 end
6363 },
6464
65+ {
66+ 'nvim-lualine/lualine.nvim',
67+ dependencies = { 'nvim-tree/nvim-web-devicons' },
68+ config = function()
69+ require("lualine").setup()
70+ end
71+ },
72+
6573 -- File tree sidebar
6674 {
6775 "nvim-tree/nvim-tree.lua",
@@ -85,6 +93,29 @@ require("lazy").setup({
8593 cmd = 'Telescope',
8694 },
8795
96+ -- LSP/etc with Mason
97+ "neovim/nvim-lspconfig",
98+ {
99+ "mason-org/mason.nvim",
100+ config = function()
101+ require("mason").setup()
102+ end,
103+ },
104+ {
105+ "mason-org/mason-lspconfig.nvim",
106+ config = function()
107+ require("mason-lspconfig").setup({
108+ ensure_installed = {
109+ "biome",
110+ "emmylua_ls",
111+ "gopls",
112+ "ts_ls",
113+ },
114+ automatic_enable = true,
115+ })
116+ end,
117+ },
118+
88119 -- Use `pi` for autocomplete
89120 {
90121 "sacenox/vim-pi-complete",
@@ -93,7 +124,7 @@ require("lazy").setup({
93124 },
94125 -- Configure any other settings here. See the documentation for more details.
95126 -- colorscheme that will be used when installing plugins.
96- install = { colorscheme = { "habamax" } },
127+ install = { colorscheme = { "sorbet" } },
97128 -- automatically check for plugin updates
98129 checker = { enabled = true },
99130 })
@@ -107,6 +138,9 @@ keymap('n', '<leader>h', ':nohlsearch<CR>', opts)
107138 keymap('n', '<leader>q', ':qall<CR>', { noremap = true, silent = true, desc = 'Quit all' })
108139 keymap('n', '<leader>s', ':write<CR>', { noremap = true, silent = true, desc = 'Save buffer' })
109140 keymap('n', '<leader>S', ':wall<CR>', { noremap = true, silent = true, desc = 'Save all buffers' })
141+keymap('n', '<leader>d', function()
142+ vim.diagnostic.setqflist({ open = true })
143+end, { desc = 'Open diagnostics quickfix list' })
110144
111145 -- Plugin keybinds
112146 keymap('n', '<leader>e', ':NvimTreeToggle<CR>', opts)
nvim/lazy-lock.json+15−0
@@ -0,0 +1,15 @@
1+{
2+ "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
3+ "lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
4+ "lush.nvim": { "branch": "main", "commit": "9c60ec2279d62487d942ce095e49006af28eed6e" },
5+ "mason-lspconfig.nvim": { "branch": "main", "commit": "0a695750d747db1e7e70bcf0267ef8951c95fc83" },
6+ "mason.nvim": { "branch": "main", "commit": "16ba83bfc8a25f52bb545134f5bee082b195c460" },
7+ "nvim-lspconfig": { "branch": "master", "commit": "229b79051b380377664edc4cbd534930154921a1" },
8+ "nvim-tree.lua": { "branch": "master", "commit": "85d1145ac71c1b8e1423862c78165a1f609faf60" },
9+ "nvim-web-devicons": { "branch": "master", "commit": "dfbfaa967a6f7ec50789bead7ef87e336c1fa63c" },
10+ "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
11+ "telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
12+ "telescope.nvim": { "branch": "master", "commit": "7d324792b7943e4aa16ad007212e6acc6f9fe335" },
13+ "vim-pi-complete": { "branch": "main", "commit": "cf0655d575b62f200dd72c902810a8fa7e764437" },
14+ "zenbones.nvim": { "branch": "main", "commit": "239bdb9a09c8d38c752c43590d02f654ed0da2b0" }
15+}