Comments (4)
Pressing space+tab should give context appropriate completions but instead gives generic completions / no completions at all
Can you give a small reproducible example of a nix file that works with other editors too ?
from lsp-mode.
example code
{
inputs = {
nixpkgs.url = "github:nixOS/nixpkgs/release-23.05";
utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
utils,
...
}:
utils.lib.eachSystem ["i686-linux" "x86_64-linux"]
(system: let
pkgs = nixpkgs.legacyPackages.${system};
in rec {
packages = {
nbfc = pkgs.stdenv.mkDerivation {
name = "nbfc-linux";
version = "0.1.15";
src = nixpkgs.lib.cleanSource ./.;
buildFlags = ["PREFIX=$(out)" "confdir=/etc"];
installFlags = ["PREFIX=$(out)" "confdir=$(out)/etc"];
installTargets = ["install-core" "install-configs" "install-docs" "install-completion"];
};
default = packages.nbfc;
};
});
}
from lsp-mode.
@Celibistrial Thanks, that helps. I tried reproducing it in my emacs, but unfortunately couldn't:
I'm using company-mode
for the completions.
from lsp-mode.
Hmm , in that case its probably a doom emacs specific issue.
Relevant parts of my personal config
(after! lsp-ui
(setq lsp-ui-sideline-show-code-actions nil)
(setq lsp-headerline-breadcrumb-enable t)
(setq lsp-enable-symbol-highlighting t)
(setq lsp-signature-auto-activate t)
(setq lsp-headerline-breadcrumb-enable t)
(setq lsp-ui-sideline-enable t)
(setq lsp-ui-sideline-enable t)
(setq lsp-modeline-code-actions-enable t)
(setq lsp-ui-sideline-enable t)
(setq lsp-eldoc-enable-hover t)
(setq lsp-completion-show-detail t)
(setq lsp-completion-show-kind t))
;; //(setq lsp-auto-guess-root t)
(defun lsp-ui-sideline--compute-height nil '(height unspecified))
(use-package! lsp-nix
:ensure lsp-mode
:after
(lsp-mode)
:demand t
:custom
(lsp-nix-nil-formatter
["alejandra"]))
from lsp-mode.
Related Issues (20)
- No tool tips in the mode-line when lsp-mode is enabled HOT 1
- rust types displayed in minibuffer are truncated HOT 2
- Zig's ZLS download URLs have changed HOT 1
- Volar/Vue: how to get autocompletions in javascript, HTML & CSS in vue files? HOT 2
- Support `ruff server` HOT 2
- Ctrl-x 1 not working anymore in org mode?
- Wrong server selected HOT 4
- Detect if LSP_USE_PLIST is not set before loading lsp-mode (server starting...)
- Update clangd to 18
- lsp--path-to-uri: Symbol’s function definition is void: -compose HOT 3
- Angular-ls returns no result HOT 1
- Unable to calculate the languageId for buffer ‘Foo.qml’. Take a look at ‘lsp-language-id-configuration’. The ‘major-mode’ is qml-mode
- headerline not show symbols HOT 1
- AUCTeX's LaTeX-mode is not recognized as a Latex mode
- Texlab lsp server exits on unicode letter 1F582
- `(wrong-type-argument hash-table-p nil)` when renaming with Haskell Language Server HOT 1
- Allow other snippet/template expansion libraries
- Consider adding `lsp-ai` support for `lsp-mode`
- LSP pyright false positive
- lsp can't find node when installed by nvm and running in GUI Emacs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsp-mode.