nvim lsp stuff and sway

master
Braydon Kains 1 year ago
parent 3ee805f855
commit ddc41696ae
No known key found for this signature in database
GPG Key ID: 1F801ECAABAAF78D

@ -1 +0,0 @@
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)

@ -37,10 +37,21 @@ lsp.on_attach(function(_, bufnr)
vim.keymap.set("n", "<leader>vd", function() vim.diagnostic.open_float() end, opts)
vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts)
vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts)
vim.keymap.set("n", "<C-.>", function() vim.lsp.buf.code_action() end, opts)
vim.keymap.set("n", "<leader>vc", function() vim.lsp.buf.code_action() end, opts)
vim.keymap.set("n", "<leader>vrr", function() vim.lsp.buf.references() end, opts)
vim.keymap.set("n", "<leader>rn", function() vim.lsp.buf.rename() end, opts)
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
end)
lsp.format_on_save({
format_opts = {
async = false,
timeout_ms = 10000,
},
servers = {
['lua_ls'] = {'lua'},
['gopls'] = {'go'},
}
})
lsp.setup()

@ -44,7 +44,6 @@ return require('packer').startup(function(use)
{'L3MON4D3/LuaSnip'}, -- Required
},
use('tpope/vim-fugitive'),
use('editorconfig/editorconfig-vim'),
}
end)

@ -45,3 +45,6 @@ vim.keymap.set("n", "<leader>wt", ":tabnew<cr>")
vim.keymap.set("n", "<Leader>c", '"+')
vim.keymap.set("v", "<Leader>c", '"+')
-- Reload config
vim.keymap.set("n", "<leader>rc", ":so $HOME/.config/nvim/init.lua<cr>")

@ -139,6 +139,29 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
bindsym $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
# bind numpad as well
bindsym $mod+Mod2+KP_1 workspace number 1
bindsym $mod+Mod2+KP_2 workspace number 2
bindsym $mod+Mod2+KP_3 workspace number 3
bindsym $mod+Mod2+KP_4 workspace number 4
bindsym $mod+Mod2+KP_5 workspace number 5
bindsym $mod+Mod2+KP_6 workspace number 6
bindsym $mod+Mod2+KP_7 workspace number 7
bindsym $mod+Mod2+KP_8 workspace number 8
bindsym $mod+Mod2+KP_9 workspace number 9
bindsym $mod+Mod2+KP_0 workspace number 10
bindsym $mod+Shift+Mod2+KP_1 move container to workspace number 1
bindsym $mod+Shift+Mod2+KP_2 move container to workspace number 2
bindsym $mod+Shift+Mod2+KP_3 move container to workspace number 3
bindsym $mod+Shift+Mod2+KP_4 move container to workspace number 4
bindsym $mod+Shift+Mod2+KP_5 move container to workspace number 5
bindsym $mod+Shift+Mod2+KP_6 move container to workspace number 6
bindsym $mod+Shift+Mod2+KP_7 move container to workspace number 7
bindsym $mod+Shift+Mod2+KP_8 move container to workspace number 8
bindsym $mod+Shift+Mod2+KP_9 move container to workspace number 9
bindsym $mod+Shift+Mod2+KP_0 move container to workspace number 10
#
# Layout stuff:
#
@ -210,7 +233,8 @@ bar {
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
# status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
status_command i3status
colors {
statusline #ffffff
@ -222,9 +246,12 @@ bar {
# Make SSH work
exec "ssh-agent -a $SSH_AUTH_SOCK"
# Swap Caps and Esc
input "type:keyboard" {
# Swap Caps and Esc
xkb_options caps:swapescape
# enable numlock
xkb_numlock enabled
}
# media/brightness buttons

Loading…
Cancel
Save