Compare commits
3 Commits
master
...
c3a1ec874e
| Author | SHA1 | Date | |
|---|---|---|---|
| c3a1ec874e | |||
| a598dcd1fc | |||
| 6f574b81e0 |
@ -4,16 +4,7 @@ return {
|
||||
config = true
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
event = "BufReadPre BufNewFile",
|
||||
dependencies = {
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"nvimtools/none-ls.nvim",
|
||||
},
|
||||
"mason-org/mason-lspconfig.nvim",
|
||||
config = function()
|
||||
require("user.plugins.lsp.mason_lsp_config")
|
||||
require("user.plugins.lsp.diagnostics_config").setup()
|
||||
@ -33,6 +24,17 @@ return {
|
||||
|
||||
vim.cmd([[ command! Format execute 'lua vim.lsp.buf.format{async=true}' ]])
|
||||
end,
|
||||
dependencies = {
|
||||
{ "mason-org/mason.nvim", opts = {} },
|
||||
"neovim/nvim-lspconfig",
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
event = "BufReadPre BufNewFile",
|
||||
dependencies = {
|
||||
"nvimtools/none-ls.nvim",
|
||||
},
|
||||
},
|
||||
{
|
||||
"lukas-reineke/lsp-format.nvim",
|
||||
|
||||
@ -4,6 +4,8 @@ vim.lsp.enable({
|
||||
"omnisharp",
|
||||
"pylsp",
|
||||
"rust_analyzer",
|
||||
"luals",
|
||||
"vimls"
|
||||
})
|
||||
|
||||
-- TODO: this does not work, need to install pylsp-mypy plugin manually
|
||||
@ -45,4 +47,20 @@ vim.lsp.config('rust_analyzer', {
|
||||
}
|
||||
})
|
||||
|
||||
vim.lsp.config('luals', {
|
||||
settings = {
|
||||
Lua = {}
|
||||
}
|
||||
})
|
||||
|
||||
vim.lsp.config('rust_analyzer', {
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
cargo = {
|
||||
features = "all",
|
||||
},
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
mason_lspconfig.setup()
|
||||
|
||||
@ -5,6 +5,13 @@ export SUDO_EDITOR=/usr/bin/nvim
|
||||
export XDG_CURRENT_DESKTOP=Sway
|
||||
export HOMEBREW_NO_AUTO_UPDATE=true
|
||||
export ELECTRON_OZONE_PLATFORM_HINT=auto
|
||||
# Created by `pipx` on 2024-10-08 14:33:09
|
||||
export PATH="$PATH:/Users/nikitabykov/.local/bin"
|
||||
|
||||
# >>> coursier install directory >>>
|
||||
export PATH="$PATH:/Users/nikitabykov/Library/Application Support/Coursier/bin"
|
||||
# <<< coursier install directory <<<
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
|
||||
if [[ -z $DISPLAY && $TTY = /dev/tty1 ]]; then
|
||||
exec sway
|
||||
|
||||
Reference in New Issue
Block a user