From 40786e775c0d1540f88f8fab6af2a4b19a3e571e Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 6 Oct 2023 23:04:08 +0200 Subject: Added zig lsp --- config/fish/config.fish | 7 ++++--- config/nvim/lua/plugins.lua | 23 +++++++++++++---------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/config/fish/config.fish b/config/fish/config.fish index fa2f40f..d84ee46 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -1,17 +1,18 @@ if [ "$(uname)" = 'Linux' ] - set -gx PATH "/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/.local/bin:/opt/cuda/bin" + set -gx PATH "/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin" set -gx MAIL 'me@cacharle.xyz' set -gx SUDO 'doas' else if [ "$(uname)" = 'Darwin' ] set -gx PATH "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" set -gx PATH "$PATH:$HOME/.brew/bin:$HOME/git/dotfiles/bin:$HOME/bin" - set -gx PATH "$PATH:$HOME/.local/share/go/bin" - set -gx PATH "$PATH:$HOME/.local/bin" set -gx MAIL 'charles.cabergs@colruytgroup.com' set -gx SUDO 'sudo' set -gx LC_CTYPE 'en_US.UTF-8' end +set -gx PATH "$PATH:$HOME/.local/share/go/bin" +set -gx PATH "$PATH:$HOME/.local/bin" + # applications set -gx EDITOR 'nvim' set -gx TERMINAL 'alacritty' diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 03659d7..6d92a76 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -61,7 +61,7 @@ return require("packer").startup(function() -- nvim lsp configuration use { "neovim/nvim-lspconfig", - ft = {"rust", "python", "c", "cpp", "lua", "go", "haskell", "ocaml"}, + ft = {"rust", "python", "c", "cpp", "lua", "go", "haskell", "ocaml", "zig"}, config = function() vim.diagnostic.config { signs = false, @@ -173,6 +173,9 @@ return require("packer").startup(function() } lspconfig.clangd.setup { on_attach = on_attach } + + -- pacman -S zls + lspconfig.zls.setup{} end, } @@ -497,15 +500,15 @@ return require("packer").startup(function() -- -- run = ":DistantInstall" -- } - use { - 'chipsenkbeil/distant.nvim', - branch = 'v0.3', - config = function() - require('distant'):setup() - require("telescope").load_extension("distant") - end, - -- run = ":DistantInstall" - } + -- use { + -- 'chipsenkbeil/distant.nvim', + -- branch = 'v0.3', + -- config = function() + -- require('distant'):setup() + -- require("telescope").load_extension("distant") + -- end, + -- -- run = ":DistantInstall" + -- } -- jupyter kernel in nvim (with images, needs ueberzug) -- use { -- cgit