This commit is contained in:
Salar Rahmanian 2021-09-07 08:04:39 -07:00
parent 83c571cbff
commit f3df47f424
2 changed files with 65 additions and 38 deletions

View file

@ -24,17 +24,17 @@
enable = true; enable = true;
}; };
programs.fzf = {
enable = true;
enableFishIntegration = true;
};
programs.direnv = { programs.direnv = {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
programs.fzf = {
enable = true;
enableFishIntegration = true;
};
programs.gh = { programs.gh = {
enable = true; enable = true;
editor = "nvim"; editor = "nvim";
@ -74,6 +74,27 @@
}; };
}; };
programs.vscode = {
enable = true;
extensions = [
pkgs.vscode-extensions.scalameta.metals
pkgs.vscode-extensions.usernamehw.errorlens
pkgs.vscode-extensions.golang.Go
pkgs.vscode-extensions.redhat.java
pkgs.vscode-extensions.xyz.local-history
pkgs.vscode-extensions.yzhang.markdown-all-in-one
pkgs.vscode-extensions.svsool.markdown-memo
pkgs.vscode-extensions.github.vscode-pull-request-github
pkgs.vscode-extensions.github.github-vscode-theme
pkgs.vscode-extensions.jnoortheen.nix-ide
pkgs.vscode-extensions.timonwong.shellcheck
];
userSettings = {
telemetry.enableTelemetry = false;
workbench.colorTheme = "GitHub Dark Default";
};
};
programs.fish = { programs.fish = {
enable = true; enable = true;
@ -123,6 +144,8 @@
set -xg PATH $HOME/bin $PATH set -xg PATH $HOME/bin $PATH
set -xg PATH /Users/salar/.luarocks/bin:/nix/store/95wpywsjf5iiw77f6n9rw347lk1sly15-luarocks-3.2.1/bin:/Users/salar/bin:/Users/salar/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/nix/store/3qp71mhrpxxg080yc82k51nx7b5hkajr-kitty-0.21.2/Applications/kitty.app/Contents/MacOS $PATH
set -xg JAVA_HOME /Users/salar/.nix-profile/bin set -xg JAVA_HOME /Users/salar/.nix-profile/bin
set -xg JDTLS_CONFIG /Users/salar/.config/jdt-language-server/config_mac set -xg JDTLS_CONFIG /Users/salar/.config/jdt-language-server/config_mac
@ -138,6 +161,10 @@
set -xg TOOLCHAINS swift set -xg TOOLCHAINS swift
set -xg XDG_CONFIG_HOME $HOME/.config set -xg XDG_CONFIG_HOME $HOME/.config
set -xg LUA_PATH "/nix/store/95wpywsjf5iiw77f6n9rw347lk1sly15-luarocks-3.2.1/share/lua/5.1/?.lua;/nix/store/95wpywsjf5iiw77f6n9rw347lk1sly15-luarocks-3.2.1/share/lua/5.1/?/init.lua;/Users/salar/.luarocks/share/lua/5.1/?.lua;/Users/salar/.luarocks/share/lua/5.1/?/init.lua"
set -xg LUA_CPATH "?.so;/nix/store/95wpywsjf5iiw77f6n9rw347lk1sly15-luarocks-3.2.1/share/lua/5.1/?/init.lua;/Users/salar/.luarocks/lib/lua/5.1/?.so;/nix/store/95wpywsjf5iiw77f6n9rw347lk1sly15-luarocks-3.2.1/lib/lua/5.1/?.so"
''; '';
promptInit = '' promptInit = ''
@ -219,6 +246,7 @@
pkgs.jansson pkgs.jansson
pkgs.luajit pkgs.luajit
pkgs.luajitPackages.luarocks pkgs.luajitPackages.luarocks
pkgs.luajitPackages.luasocket
pkgs.maven pkgs.maven
pkgs.multimarkdown pkgs.multimarkdown
pkgs.ncdu pkgs.ncdu
@ -250,7 +278,6 @@
pkgs.tokei pkgs.tokei
pkgs.tree pkgs.tree
pkgs.universal-ctags pkgs.universal-ctags
pkgs.vscodium
pkgs.wget pkgs.wget
pkgs.xz pkgs.xz
pkgs.yq pkgs.yq

View file

@ -53,8 +53,6 @@ _G.load_config = function()
indent_blankline_use_treesitter = true indent_blankline_use_treesitter = true
}) })
local luadev = require('lua-dev').setup()
-- nvim-autopairs -- nvim-autopairs
require('nvim-autopairs').setup() require('nvim-autopairs').setup()
require('nvim-autopairs.completion.compe').setup({ require('nvim-autopairs.completion.compe').setup({
@ -324,7 +322,8 @@ _G.load_config = function()
table.insert(runtime_path, 'lua/?.lua') table.insert(runtime_path, 'lua/?.lua')
table.insert(runtime_path, 'lua/?/init.lua') table.insert(runtime_path, 'lua/?/init.lua')
require('lspconfig').sumneko_lua.setup { local luadev = require('lua-dev').setup{
lspconfig = {
cmd = { sumneko_binary }, cmd = { sumneko_binary },
commands = { commands = {
Format = { Format = {
@ -350,7 +349,6 @@ _G.load_config = function()
-- Make the server aware of Neovim runtime files -- Make the server aware of Neovim runtime files
library = { library = {
vim.api.nvim_get_runtime_file('', true), vim.api.nvim_get_runtime_file('', true),
luadev,
}, },
}, },
-- Do not send telemetry data containing a randomized but unique identifier -- Do not send telemetry data containing a randomized but unique identifier
@ -359,7 +357,9 @@ _G.load_config = function()
}, },
}, },
}, },
},
} }
require('lspconfig').sumneko_lua.setup(luadev)
-- metals -- metals
vim.g.metals_server_version = '0.10.5+64-3c83447e-SNAPSHOT' vim.g.metals_server_version = '0.10.5+64-3c83447e-SNAPSHOT'